package com.perseygroup.apps.tools.c2dm;

import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

public class C2DMService extends Service 
{
	@Override
	public void onCreate() 
	{
		super.onCreate();
		Intent registationIntent = new Intent("com.google.android.c2dm.intent.REGISTER");
		registationIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0));
		registationIntent.putExtra("sender", "perseygroup@gmail.com");
		startService(registationIntent);
		
		Intent unregistrationItent = new Intent("com.google.android.c2dm.intent.UNREGISTER");
		unregistrationItent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0));
		startService(unregistrationItent);
	}

	@Override
	public IBinder onBind(Intent arg0) 
	{
		// TODO Auto-generated method stub
		return null;
	}

}
